import request from "@/utils/request";

//查看申请的活动信息
export function getAllSecKill(data){
    return request({
        url:'/leader/getAllSecKill',
        method: 'GET',
        params: data,
    })
}

//新增一个申请秒杀的记录
export function insertSecKill(data){
    return request({
        url:'/leader/insertSecKill',
        method: 'POST',
        data: data,
    })
}

//申请秒杀活动表单查询校区名称
export function queryCampusNameWhenSecKill(data){
    return request({
        url:'/leader/queryCampusNameWhenSecKill',
        method: 'GET',
        params: data,
    })
}

//获取校区对应的所有课程
export function queryAllCourseByCampusId(data){
    return request({
        url:'/leader/queryAllCourseByCampusId',
        method: 'GET',
        params: data,
    })
}